<%--
  ~ Copyright (c) 2009.
  ~ nick@tmro.net
  --%>
<!--
Created by IntelliJ IDEA.
User: nick
Date: Apr 5, 2009
Time: 10:01:23 PM
To change this template use File | Settings | File Templates.
-->
<%@ page contentType="text/html" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>UserEntity List</title>
</head>
<body>
<f:view>
    <h1>Store List</h1>
    <h:form>
        <table>
            <tr>

                <td valign="top">
                <td valign="top">
                    <h:outputText rendered="#{empty store.entities}" value="Empty List"/>
                    <h:selectOneListbox value="#{store.entity}" rendered="#{not empty store.entities}" size="7">
                        <f:selectItems value="#{store.allEntitiesAsSelectedItems}"/>
                    </h:selectOneListbox>
                </td>
                <td valign="top">
                    <h:commandButton action="#{store.startCreate}" value="Create"/><br>
                    <h:commandButton value="View" action="#{store.startView}" disabled="#{empty store.entities}"/><br>
                    <h:commandButton value="Edit" action="#{store.startEdit}" disabled="#{empty store.entities}"/><br>
                    <h:commandButton value="Delete" action="#{store.delete}" disabled="#{empty store.entities}"/>
                </td>
            </tr>
        </table>
    </h:form>
</f:view>
</body>
</html>